package com.zhigh.project.tools;

public class AssertableException extends RuntimeException {

    private String message;

    public AssertableException() {
    }

    public AssertableException(String message) {
        super(message);
        this.message = message;
    }

    public AssertableException(String message, Throwable cause) {
        super(message, cause);
        this.message = message;
    }

    public AssertableException(Throwable cause) {
        super(cause);
        this.message = cause.getMessage();
    }

    public AssertableException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
        super(message, cause, enableSuppression, writableStackTrace);
    }

    @Override
    public String getMessage() {
        return message;
    }
}
